package com.example.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.blog.domain.WebsiteAdministration;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WebsiteAdministrationMapper extends BaseMapper<WebsiteAdministration> {
    //获取网站访问总数
    @Select("select content from website_administration where options = 'total_number_visits'")
    long webLength();
}
